package com.example.springbootsfzy.mapper;

import com.example.springbootsfzy.domain.CourseFavorites;

import java.util.List;

/**
* @author 30658
* @description 针对表【course_favorites】的数据库操作Mapper
* @createDate 2025-01-02 15:11:36
* @Entity com.example.springbootsfzy.domain.CourseFavorites
*/
public interface CourseFavoritesMapper {

    //哈讯所有课程收藏
    List<CourseFavorites> findAll();

    //通过memberid查
    List<CourseFavorites> selectByMemberId(Integer memberId);

    int deleteByPrimaryKey(int id);

    int insert(CourseFavorites record);

    int insertSelective(CourseFavorites record);

    //通过favorite_id查
     List<CourseFavorites> selectByPrimaryKey(int id);

    int updateByPrimaryKeySelective(CourseFavorites record);

    int updateByPrimaryKey(CourseFavorites record);
    //通过courseid和memberid删除
    int deleteByCourseIdAndMemberId(Integer courseId, Integer memberId);


}
